












<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="search_data"  placeholder="用户账号|UID" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <div class="layui-input-inline">
                <select name="type">
                    <option value="" >全部类型</option>
                    <option value="9" {notempty name="param['type']"}{if condition="$param['type'] eq 10"} selected="selected" {/if}{/notempty} >分红</option>
                    <option value="10" {notempty name="param['type']"}{if condition="$param['type'] eq 10"} selected="selected" {/if}{/notempty} >代理奖</option>
                    <option value="12" {notempty name="param['type']"}{if condition="$param['type'] eq 12"} selected="selected" {/if}{/notempty} >代数奖</option>
                </select>
            </div>
            <button class="layui-btn"  id="search"  url="{:url('account_log3')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->


        <ob_link> <button class="layui-btn export" url="{:url('exportAccountList3')}"> 导 出</button></ob_link>
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">总金额：{$list.shan}</span>


    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                序号
            </th>
            <th>ID</th>
            <th>用户账号</th>
            <th>奖金类型 </th>
            <th>奖金金额 </th>
            <th>备注说明</th>
            <th>发放时间</th>
        </tr>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td>{$k}</td>
            <td>{$vo.id}</td>
            <td>{$vo.username}</td>
            <td>{$vo.type_text}</td>
            <td>{$vo.number}</td>
            <td>{$vo.remark}</td>
            <td>{$vo.create_time}</td   >

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>

</body>

</html>



